package fr.cnam.projetSiw.shared;

import java.io.Serializable;
import java.util.Date;

public class Track implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7418126457740937213L;
	
	private String name;
	private Artist artist;
	private int listeners;
	private String albumName;
	private String imgUrl;
	private Date releaseDate;
	
	public Track(){
		
	}
	
	
	public Track(String name, Artist a) {
		super();
		this.name = name;
		this.setArtist(a);
	}


	public Track(String n){
		this.name = n;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public Artist getArtist() {
		return artist;
	}


	public void setArtist(Artist artist) {
		this.artist = artist;
	}


	public void setListeners(int listeners) {
		this.listeners = listeners;
	}
	
	public int getListeners(){
		return this.listeners;
	}


	public String getAlbumName() {
		return albumName;
	}


	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}


	public String getImgUrl() {
		return imgUrl;
	}


	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}


	public Date getRealiseDate() {
		return releaseDate;
	}


	public void setRealiseDate(Date realiseDate) {
		this.releaseDate = realiseDate;
	}
	

}
